package com.shux.utils.other;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.shux.utils.page.PageData;

public class CacheUtil {
	
	//商品类型
	public final static String GOODS_TYPE = "GOODS_TYPE"; 
	
	//首页商品
	public final static String GOODS_HOME = "GOODS_HOME"; 

	//全部商品
	public final static String GOODS_ALL = "GOODS_ALL"; 
	
	//商品类型
	public static Map<String,List<PageData> > MAP_GOODS_TYPE = new HashMap<String,List<PageData>>();
	
	//首页商品,key1为缓存标识，key2为区域id,key3为区分新品及热销推荐
	public static Map<String,Map<String,Map<String,List<PageData>>>> MAP_GOODS_HOME = new HashMap<String,Map<String,Map<String,List<PageData>>>>();
		
	//全部商品,key1为缓存标识，key2为区域id
	public static Map<String,Map<String,List<PageData>>> MAP_GOODS_ALL = new HashMap<String,Map<String,List<PageData>>>();
	 
	//清除缓存
	public static void clearCache(){
		MAP_GOODS_TYPE.clear();
		MAP_GOODS_HOME.clear();
		MAP_GOODS_ALL.clear();
	}
}
